/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.dao;

import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import sunsite.po.University;

/**
 *
 * @author Ruby
 */
public class UniversityDaoImpl extends HibernateDaoSupport implements UniversityDao{

    public List<University> getUniversityList() {
        return getHibernateTemplate().find("from University");
    }

    public University getUniversityById(int uniId) {
        return (University)getHibernateTemplate().get(University.class, uniId);
    }

}
